package com.cjj.eatlasflow.config;


import com.cjj.eatlasflow.designpatten.chain.AbstractChainContext;
import com.cjj.eatlasflow.designpatten.strategy.AbstractStrategyChoose;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 设计模式自动装配
 *
 *
 */
@Configuration
public class DesignPatternAutoConfiguration {
    /**
     * 策略模式选择器
     */
    @Bean
    public AbstractStrategyChoose abstractStrategyChoose() {
        return new AbstractStrategyChoose();
    }

    /**
     * 责任链上下文
     */
    @Bean
    public AbstractChainContext abstractChainContext() {
        return new AbstractChainContext();
    }
}
